<%@page import="siniflar.Ogrenci"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<jsp:useBean id="ogretim" class="siniflar.OgretimUyesi" scope="session" />
<jsp:useBean id="ogrenciBilgileri" type="siniflar.Ogrenci" scope="session" />

<%
    String ogretimBilgiGuncellemeDurum = (String) session.getAttribute("ogretimBilgiGuncellemeDurum");
%>

<jsp:include page="../ek_bas.jsp" />
<title>Öğrenci Bilgilerini Düzenle</title>
<jsp:include page="ek_menu.jsp" />
<h1 class="icbaslik ogrenciicon">Öğrenci Bilgilerini Düzenle</h1>

    <%
    if(ogretimBilgiGuncellemeDurum != null) {
        out.print(ogretimBilgiGuncellemeDurum);
        session.removeAttribute("ogretimBilgiGuncellemeDurum");
    }
    %>
    <form action="OgrenciBilgiGuncelle" method="POST">
        <table style="margin: 0 auto; margin-top: 20px; border: none; width: 310px;">
            <tr><td class="yazilarsaga">İsim:</td><td class="yazilarsaga"><input style="width: 200px;" maxlength="16" type="text" name="ogrAdTxt" value="<%=ogrenciBilgileri.getAd()%>"></td></tr>
            <tr><td class="yazilarsaga">Soyad:</td><td class="yazilarsaga"><input style="width: 200px;" maxlength="16" type="text" name="ogrSoyadTxt" value="<%=ogrenciBilgileri.getSoyad()%>"></td></tr>        
            <tr><td class="yazilarsaga">TC Kimlik No:</td><td class="yazilarsaga"><input style="width: 200px;" disabled="disabled" maxlength="16" type="text" value="<%=ogrenciBilgileri.getTckimlik()%>"></td></tr>
            <tr><td class="yazilarsaga">Anabilim Dalı:</td><td class="yazilarsaga"><input style="width: 200px;" disabled="disabled" maxlength="16" type="text" value="<%=ogrenciBilgileri.getAnabilimDali().getAnabilimAdi()%>"></td></tr>
            <tr><td class="yazilarsaga">Enstitü:</td><td class="yazilarsaga"><input style="width: 200px;" disabled="disabled" maxlength="16" type="text" value="<%=ogrenciBilgileri.getEnstitu().getEnstituAdi()%>"></td></tr>
            <tr><td class="yazilarsaga">İletişim:</td><td class="yazilarsaga"><input style="width: 200px;" maxlength="16" type="text" name="ogrIletisimTxt" value="<%=ogrenciBilgileri.getIletisim()%>"></td></tr>        
            <tr><td>&nbsp;</td><td class="yazilarsaga"><input type="submit" class="duzbuton soldanaralikli" value="Güncelle"></td></tr>
        </table>
    </form>

<jsp:include page="../ek_son.jsp" />